/*
 * Copyright (C) 2004-2010  Autodesk, Inc.
 * 
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of version 2.1 of the GNU Lesser
 * General Public License as published by the Free Software Foundation.
 * 
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 *
 */

#ifndef FDOCMSTESTSELECT_H
#define FDOCMSTESTSELECT_H

#ifdef WIN32
#pragma once
#endif

#include "CMSTests.h"


class CMSTestSelect : public CMSTests
{
    CPPUNIT_TEST_SUITE (CMSTestSelect);

    //CPPUNIT_TEST (testGoogle1);     
    //CPPUNIT_TEST (testBing1);
    //CPPUNIT_TEST (testYahoo1);

    CPPUNIT_TEST (testResampleGoogle1);  
    // CPPUNIT_TEST (testResampleGoogle2);  // UNDONE It cannot pass test because both minY and maxY exceed the (-90, 90) range.
    // CPPUNIT_TEST (testResampleGoogle2);
    // CPPUNIT_TEST (testResampleGoogle3);
    // CPPUNIT_TEST (testResampleGoogle4);
    // CPPUNIT_TEST (testResampleGoogle5);  // It will not pass test because user can only use SetConfigration to change MapType.
    // CPPUNIT_TEST (testResampleGoogle6);
    // CPPUNIT_TEST (testResampleBing1);
    // CPPUNIT_TEST (testResampleYahoo1); // Comment it for debug assert which happened in FdoOwsDelegate, however the reason is not clear so far.
    // CPPUNIT_TEST (testResampleYahoo2);   // It will not pass test because user can only use SetConfigration to change MapType.   

    //CPPUNIT_TEST (testResampleYahoo3);   

    CPPUNIT_TEST_SUITE_END ();

private:
    //void ExecuteSelectServer(FdoString* server, FdoString* classname);

public:
    CMSTestSelect(void);
    ~CMSTestSelect(void);

    void _setUp () {}
    void _tearDown () {}

    void testGoogle1();
    void testBing1();
    void testYahoo1();

    void testResampleGoogle1 ();
    void testResampleGoogle2 ();
    void testResampleGoogle3 ();
    void testResampleGoogle4();
    void testResampleGoogle5();
    void testResampleGoogle6();

    void testResampleBing1 ();

    void testResampleYahoo1 ();
    void testResampleYahoo2 ();
    void testResampleYahoo3 ();

    void testResample(FdoStringP connectStr, 
                                FdoStringP mapType,
                                const FdoDouble dMinX,
                                const FdoDouble dMinY, 
                                const FdoDouble dMaxX, 
                                const FdoDouble dMaxY, 
                                const FdoDouble dWidth, 
                                const FdoDouble dHeight
                                );

};

#endif//FDOCMSTESTSELECT_H

